import {defineStore} from 'pinia'
import { getCategory} from '@/apis/layout.js'
import {ref} from 'vue'
export const useCategoryStore=defineStore('category',()=>{
const categoryList = ref([])
const getCategoryList=async ()=>{
const res=await getCategory()
console.log(res);
categoryList.value=res.result
}
return{
    categoryList,
    getCategoryList
}
})
